package com.recipeexchange

import org.springframework.context.MessageSource
import org.springframework.context.MessageSourceResolvable


enum RecipeType implements MessageSourceResolvable{
    STARTER,
    MAIN,
    DESSERT,
    BREAD,
    OTHER


    String[] getCodes() {
        return "com.recipeexhange.recipe.type.${name}"
    }

    Object[] getArguments() {
        return new Object[0]
    }

    String getDefaultMessage() {
        return name()
    }
}

